Obsidianhtml Run
Important

This is the documentation for v3.5.0 and lower, for documentation for v4.0.0 and higher, see https://obsidian-html.github.io/

New in v3.2.0.

To help new users to quickly start using obsidianhtml we created the obsidianhtml run
command.

Note

obsidianhtml run was added in the latest release v3.2.0, and is currently not fully tested yet. If you experience issues, then I ask you to go to Report Issues & Request features. In the mean time you can continue with the section below.

Quickstart

Short instructions

Run

obsidianhtml run -f /absolute/path/to/your/entrypoint_note.md

Then follow the instructions in the terminal. If all is well it will spit out some information and then tell you to open http://localhost:8888 in your browser. Do so and admire your new website.

When done return to the terminal and press enter to exit obsidianhtml and stop the webserver.

About

This is a very opinionated mode, which allows us to do a lot of checking of input, and more importantly: compute sensible defaults. This will give you the highest chance of getting a working config right off the bat.

In the basis you run obsidianhtml run by only providing the path to your note. We advice you to use an absolute path for this.

obsidianhtml run -f /home/user/git/obsidian-html.github.io/__src/vault/ObsidianHtml.md

This will then do the following:

The process will keep running to keep the webserver alive. Press enter to exit the process and stop the webserver. The webserver will print logs to your terminal so that you can debug any issues.

Further configuration

Get a working config for deploying to a subfolder

Read more on this subject: Deployment instructions#Deploying to a subfolder.

Add the --subfolder test setting to get a working config for publishing to e.g. http://mywebsite.com/test

Example:

# for http://mywebsite.com/test
obsidianhtml run -f /absolute/path/to/your/entrypoint_note.md --subfolder test

# for http://mywebsite.com/sites/test
obsidianhtml run -f /absolute/path/to/your/entrypoint_note.md --subfolder sites/test

More options

Run

obsidianhtml help

For more information on the run command.